use windows::core::HSTRING;
use windows::Win32;
use windows::Win32::UI::WindowsAndMessaging::{MessageBoxW, MB_ICONERROR, MB_OK};

pub fn error(msg: &str) {
    unsafe { MessageBoxW(None, &HSTRING::from(msg), None, MB_ICONERROR | MB_OK) };
}

pub fn get_oemcp() -> u32 {
    unsafe { Win32::Globalization::GetOEMCP() }
}

pub fn get_acp() -> u32 {
    unsafe { Win32::Globalization::GetACP() }
}
